function [] = print_matrix(G,s1,s)
    [height, length] = size(G);
    pad(s1);
    fprintf('[');
    for i = 1:height,
        if(i ~= 1)
            pad(s);
            fprintf(' ');
        end
        for j = 1:length,
            if(i == 1)
                %fprintf(' ');
            elseif(j == length)
            else
            end
              %  fprintf(' ');
            fprintf('%d', G(i,j));
            if(j ~= length)
                fprintf(' ');
            end
        end
        if(i ~= height)
            fprintf('\n');
        end
    end
    fprintf(']\n');
end